package com.example.transformer.repository;

import com.example.transformer.entity.VulnerabilityResult;  // 确保导入正确
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VulnerabilityResultRepository extends JpaRepository<VulnerabilityResult, Long> {
    List<VulnerabilityResult> findByScanTaskId(Long scanTaskId);
    List<VulnerabilityResult> findByHasVulnerabilityTrueOrderByConfidenceDesc();
}
